<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<style>
  
</style>
<body>
  <div id="app">
 <ul >
  <li  v-for="(item, index) in list" >
<span>{{item.name}}</span>
  </li>
 </ul>
 <Button @click="go">走一走</Button>
  </div>

   <script src="../vue.js"></script>
   <script>
    const app = new Vue({
      el: '#app',
      data: {
        list: [
        {name:'美女'} ,
        {name:'帅哥'} ,
        {name:'程序员'} ,
        ]
     
      },
      methods: {
        go(){
          if (this.list.length > 0) {
          // 移动第一个元素到数组的末尾
          this.list.push(this.list.shift());
        }
        }
      }
    })
  </script>
</body>
</html>